import request from '@/utils/request'


// 查询列表
export function listProtection(query) {
  return request({
    url: '/sjgtw-emergency/protectionNet/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getProtection(protectionId) {
  return request({
    url: '/sjgtw-emergency/protectionNet/' + protectionId,
    method: 'get'
  })
}

// 新增
export function addProtection(data) {
  return request({
    url: '/sjgtw-emergency/protectionNet',
    method: 'post',
    data: data
  })
}

// 修改
export function updateProtection(data) {
  return request({
    url: '/sjgtw-emergency/protectionNet',
    method: 'put',
    data: data
  })
}

// 删除
export function delProtection(protectionId) {
  return request({
    url: '/sjgtw-emergency/protectionNet/' + protectionId,
    method: 'delete'
  })
}

// 防护类型
export function getProtectionType() {
  return request({
      url: "/sjgtw-system/dict/data/type/eg_protection_type",
      method: 'get'
  })
}

// 防护网类型
export function geteNetType() {
  return request({
      url: "/sjgtw-system/dict/data/type/eg_net_type",
      method: 'get'
  })
}

// 左右侧
export function geteLeftRightType() {
  return request({
      url: "/sjgtw-system/dict/data/type/eg_left_right",
      method: 'get'
  })
}

